import request from '@/utils/request'

export function couPage(data,pageNum,pageSize) {
  return request({
    url: '/course/page',
    method: 'post',
    data:data,
    params:{pageNum,pageSize}
  })
}

export function couGetById(id) {
  return request({
    url: '/course/getById/'+id,
    method: 'get',
  })
}
export function couSaveOrUpdate(data) {
  return request({
    url: '/course/saveOrUpdate',
    method: 'post',
    data
  })
}
export function couDelete(id) {
  return request({
    url: '/course/delete/'+id,
    method: 'get',
  })
}
export function couPublish(id) {
  return request({
    url: '/course/publish/'+id,
    method: 'get',
  })
}
